package com.hiultra.archive.domain;

import com.hiultra.common.annotation.Excel;
import com.hiultra.common.annotation.Excels;
import com.hiultra.common.core.domain.BaseEntity;
import com.hiultra.common.core.domain.entity.ArcStorehouse;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 设备管理对象 arc_equipment
 *
 * @author ls
 * @date 2022-07-28
 */
public class ArcEquipment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 设备ID
     */
    private Long equipmentId;

    /**
     * 设备名称
     */
    @Excel(name = "设备名称")
    private String equipmentName;

    /**
     * 设备编号
     */
    @Excel(name = "设备编号")
    private String equipmentCode;

    /**
     * 库房ID
     */
    private Long storehouseId;

    /**
     * IP
     */
    @Excel(name = "IP")
    private String ip;

    /**
     * 端口
     */
    @Excel(name = "端口")
    private String port;

    /**
     * 描述
     */
    @Excel(name = "描述")
    private String describ;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 修改时间
     */
    private Date updateDate;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Integer status;

    /**
     * 删除标识
     */
    private Integer delflag;

    @Excels({
            @Excel(name = "库房名称", targetAttr = "storehouseName"),
    })
    private ArcStorehouse storehouse;

    public ArcStorehouse getStorehouse() {
        return storehouse;
    }

    public void setStorehouse(ArcStorehouse storehouse) {
        this.storehouse = storehouse;
    }

    public void setEquipmentId(Long equipmentId) {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentCode(String equipmentCode) {
        this.equipmentCode = equipmentCode;
    }

    public String getEquipmentCode() {
        return equipmentCode;
    }

    public void setStorehouseId(Long storehouseId) {
        this.storehouseId = storehouseId;
    }

    public Long getStorehouseId() {
        return storehouseId;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getIp() {
        return ip;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getPort() {
        return port;
    }

    public void setDescrib(String describ) {
        this.describ = describ;
    }

    public String getDescrib() {
        return describ;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setDelflag(Integer delflag) {
        this.delflag = delflag;
    }

    public Integer getDelflag() {
        return delflag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("equipmentId", getEquipmentId())
                .append("equipmentName", getEquipmentName())
                .append("equipmentCode", getEquipmentCode())
                .append("storehouseId", getStorehouseId())
                .append("ip", getIp())
                .append("port", getPort())
                .append("describ", getDescrib())
                .append("createDate", getCreateDate())
                .append("updateDate", getUpdateDate())
                .append("status", getStatus())
                .append("delflag", getDelflag())
                .toString();
    }
}
